package com.woniuxy.service.proxyfactorybeantest;

import com.woniuxy.service.LeiManegerService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {
    public static void main(String[] args) {
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("application.xml");
        LeiManegerService leiManegerService = (LeiManegerService) applicationContext.getBean("factoryBean");
        leiManegerService.findOne();
        leiManegerService.findAll();
        leiManegerService.addOne();
    }


}
